package cn.g31010.sip.vo
{
	import com.adobe.serialization.json.JSON;
	
	public class Music 
	{
		
		public var id:String;

		public var name:String;

		public var url:String;

		public var singer:String;
		
		public var hessianTypeName:String = "cn.g31010.sip.pojo.Music";
		public function Music()
		{
		}
		public function toString():String{
			return JSON.encode(this);
		}
		
		public static function create(obj:Object):Music{
			if(obj==null)
				return null;
			var r:Music=new Music();
			if(obj.hasOwnProperty("id")){
				r.id=String(obj.id);
			}
			if(obj.hasOwnProperty("name")){
				r.name=String(obj.name);
			}
			if(obj.hasOwnProperty("url")){
				r.url=String(obj.url);
			}
			if(obj.hasOwnProperty("singer")){
				r.singer=String(obj.singer);
			}
			return r;
		}
	}
}